﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ConfigManager.ascx.cs" Inherits="Web.Cms.ConfigKeyword.ConfigManager" %>
<p class="heading">
    Quản lý từ khóa
</p>
   
<table border="0" cellpadding="2" cellspacing="4" style="width: 100%" id="tblUserManager" class="InputBox" runat="server">       
    <tr>
        <td>            
             <a style="cursor:hand;" href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/cms/ConfigKeyword/ConfigEdit.aspx','Quản lý từ khóa',620,400,null,null)">
                <img src="../App_Themes/Default/Images/Add_b.gif" border="0" />
             </a>
        </td>
    </tr>   
    <tr><td><b style="color:red;"><asp:Literal ID="ltrJump" runat="server"></asp:Literal></b> </td></tr>
    <tr>
        <td>
        <asp:GridView ID="grvConfig" AutoGenerateColumns="false" runat="server" Width="100%" 
             BorderColor="Gainsboro" BackColor="#ffffff"
	        BorderStyle="solid" BorderWidth="1px" CellPadding="4" CellSpacing="0" CssClass="Grid"
	        AllowPaging="false" OnRowCommand="grvConfig_RowCommand">
	        <AlternatingRowStyle CssClass="labe_content_02" />
	        <RowStyle CssClass="labe_content_01" />
	        <HeaderStyle CssClass="labe_Caption" Font-Bold="True" HorizontalAlign="Center" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>STT</HeaderTemplate>
                        <ItemTemplate><asp:Label ID="lblStt" runat="server"></asp:Label></ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="30" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Tên từ khóa" DataField="ConfigKey" HeaderStyle-Width="200px" />                    
                    <asp:TemplateField ItemStyle-HorizontalAlign="left">
                        <HeaderTemplate>Giá trị</HeaderTemplate>
                        <ItemTemplate>                            
                            <asp:Label runat="server" ID="lbgiatri" Text='<%#Eval("ConfigValue_VN") %>'></asp:Label>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center" Width="40" />
                        <HeaderTemplate>Sửa</HeaderTemplate>
                        <ItemTemplate>                            
                            <a href="javascript:void(0)" onclick="javascript:return showPopWinADMIN('/cms/ConfigKeyword/ConfigEdit.aspx?ConfigId=<%#Eval("ConfigId") %>','Quản lý từ khóa',620,400,null,null)"> <img src="../App_Themes/Default/images/edit.gif" border="0"></a>
                        </ItemTemplate>                        
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                        <HeaderStyle HorizontalAlign="Center" Width="40" />
                        <ItemTemplate>
                            <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("ConfigId") %>' CommandName="deleteConfig" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>                
            </asp:GridView>
         </td>
    </tr>
</table>   